import React from 'react';

import AllList from './AllList';
import StudentList from './StudentList';
import TeacherList from './TeacherList';
import ParentsList from './parentsList';

import { useRoutes } from 'react-router-dom';

let routes = [
    { path: 'allList', element: <AllList /> },
    { path: 'studentList', element: <StudentList /> },
    { path: 'teacherList', element: <TeacherList /> },
    { path: 'parentsList', element: <ParentsList /> },
]

const route = () => {
    return useRoutes(routes)
  }
  
export default route